<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>词多多代理商登录</title>
<meta name="description" content="词多多代理商登录">
<link rel="stylesheet" href="__PUBLIC__/css/login.css">
</head>
<body>
<div class="login-container">
  <div class="header"></div>
  <div name="loginForm" id="loginForm" autocomplete = "off" class="form">
    <div class="legend">代理商登录中心</div>
    <hr />
    <hr class="decoration" />
    <div class="hint"> <span class="error"></span> </div>
    <fieldset>
      <div class="input-prepend"> <span class="add-on"> <i class="icon-user"></i> </span>
        <input type="text" id="username" name="username" value="用户名" class="input" onkeydown="enterPress(event);"/>
      </div>
      <div class="input-prepend"> <span class="add-on"> <i class="icon-key"></i> </span>
        <input type="password" id="password" name="tbPassword" value="密  码" class="input" onkeydown="enterPress(event);"/>
      </div>
      <div class="input-prepend"> <span class="add-on"> <i class="icon-verify"></i> </span>
        <input type="text" id="verify" name="verify" value="验证码" class="verify input" onkeydown="enterPress(event);"/>
        <img src="/Login/verify" alt="刷新验证码" class="verifyimg" title="刷新验证码" onclick="this.src+='?rand='+Math.random();"/> </div>
      <button class="btn-login" onclick="login();">登录系统</button>
    </fieldset>
    <form action=""></form>
  </div>
</div>
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/login.js"></script>
<script type="text/javascript">
;(function($){
   $.fn.iClear= function(iSet) {
    var self=this;
        iSet=$.extend({Curval:null,color:'#000',CurColor:'#ccc',Enter:null},iSet||{});
    $(self).each( function() {
            if (iSet.Curval != null) {
                $(self).val(iSet.Curval);
            }
            $(this).css('color', iSet.CurColor).focus( function() {
                $(this).css('color',iSet.color);
                if ($(this).val() == (iSet.Curval ? iSet.Curval : this.defaultValue)) {
                    $(this).val('');
                }
            }).blur( function() {
                if ($(this).val() == '') {
                    $(this).val(iSet.Curval ? iSet.Curval : this.defaultValue).css('color', iSet.CurColor);
                }
            });
        });
    }
})(jQuery);
 $(function() {
   $('input').iClear({
        enter: $(':submit')
    });
 $('textarea').iClear();
 $("#username").focus();
 });
</script>
</body>
</html>